import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { LayoutComponent} from './layout/layout.component';
import { LoginComponent } from './login/login.component';

const appRoutes: Routes = [
	{ path: '', redirectTo: '/login', pathMatch: 'full'},
	{ path: 'admin', component: LayoutComponent},
	{ path: 'login', component: LoginComponent }
];

export const appRoutingProviders: any[] = [];
export const routing:ModuleWithProviders = RouterModule.forRoot(appRoutes);